### mpiexec -n 8 python local_main.py

import numpy as np
from itertools import combinations
from datetime import datetime
from mpi4py import MPI

#from local_cottb_split import cotblend
#from local_cottb_database_split import cotblend
from local_cottb_global_fun_onecoeff import cotblend

from splitglo import *

def main():

   cottbrun=cotblend()

   
   if rank==0:
     a=datetime.now()

#   cottbrun.cottonblending(new_rank, size, nsplit, color, rank,comm)
   cottbrun.cottonblending()
   
   if rank==0:
     b=datetime.now()
     print('time= ', (b-a).seconds)
 
#   MPI_Finalize()	# no need for this in python

if __name__=="__main__":
   main()
 
